﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarPCBATest.Procedure
{
    public class Product
    {
        /// <summary>
        /// 工位编号
        /// </summary>
        public int StationIndex { get; set; }

        public string SN { get; set; }
        public string TestCurrent { get; set; }
        public string StdCurrent { get; set; }

        /// <summary>
        /// 电流是否OK
        /// </summary>
        public bool CurrentIsOK { get; set; }

        /// <summary>
        /// 视觉是否OK
        /// </summary>
        public bool VisionIsOK { get; set; }

        public bool IsOk
        { get { return CurrentIsOK & VisionIsOK; } }

        public List<string> NGMessages { get; set; }

        public Product()
        {
            CurrentIsOK = true;
            VisionIsOK = true;
            NGMessages = new List<string>();
        }
    }
}